<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@taglib uri="http://www.springframework.org/tags/form" prefix="form"%>
<%@taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>

<div class="page-header">
	<h2>Users</h2>
</div>

<form:form method="post" commandName="userListCommand">
	<table class="table table-striped table-condensed">
		<thead>
			<tr>
				<th>Name</th>
				<th width="75px"></th>
			</tr>
		</thead>
		<c:forEach var="user" items="${userListCommand.userList}"
			varStatus="iterator">
			<c:if test="${user.id > 0}">
				<tr>
					<td><a href="<c:url value='/stat/user/full/${user.id}'/>">${user.name}</a>
					</td>
					<td><span class="badge badge-info pointerCursor"
						onclick="location.href='<c:url value='/stat/user/full/${user.id}'/>'"
						title="View user statistic"> <i
							class="icon-signal icon-white"></i>
					</span></td>
				</tr>
			</c:if>
		</c:forEach>
	</table>
</form:form>

<script type="text/javascript">
	setActiveMainMenuElem('statistics');
</script>
